package com.ebid.templates.twenty;

import com.ebid.templates.utils.ParameterUtils;

import java.text.MessageFormat;

public class ServiceOpenBidList {

    private static String serviceOpenBidList = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"+
            "<serviceOpenBidList> \n" +
            "    <serviceOpenBidListCode>{0}</serviceOpenBidListCode>\n" +
            "    <openBidRecordCode>{1}</openBidRecordCode>\n" +
            "    <bidSectionCode>{2}</bidSectionCode>\n" +
            "    <isUnion>{3}</isUnion>\n" +
            "    <unionCodeType>{4}</unionCodeType>\n" +
            "    <unionCode>{5}</unionCode>\n" +
            "    <unionName>{6}</unionName>\n" +
            "    <unionMemberBasicInfoVersion>{7}</unionMemberBasicInfoVersion>\n" +
            "    <bidderCodeType>{8}</bidderCodeType>\n" +
            "    <bidderCode>{9}</bidderCode>\n" +
            "    <bidderName>{10}</bidderName>\n" +
            "    <bidderBasicInfoVersion>{11}</bidderBasicInfoVersion>\n" +
            "    <duration>{12}</duration>\n" +
            "    <otherBidPrice>{13}</otherBidPrice>\n" +
            "    <bidAmount>{14}</bidAmount>\n" +
            "    <currencyCode>{15}</currencyCode>\n" +
            "    <priceUnit>{16}</priceUnit>\n" +
            "    <responsibleName>{17}</responsibleName>\n" +
            "    <responsibleCodeType>{18}</responsibleCodeType>\n" +
            "    <responsibleCode>{19}</responsibleCode>\n" +
            "    <otherOpenBidContent>{20}</otherOpenBidContent>\n" +
            "    <version>{21}</version>\n" +
            "    <openType>{22}</openType>\n" +
            "    <examinerName>{23}</examinerName>\n" +
            "    <examinerCodeType>{24}</examinerCodeType>\n" +
            "    <examinerCode>{25}</examinerCode>\n" +
            "    <verifyTime>{26}</verifyTime>\n" +
            "</serviceOpenBidList>";

    public static void setServiceOpenBidList(String serviceOpenBidList,String s0,String s1,String s2,String s3,String s4,String s5,String s6,String s7,String s8,String s9,String s10
            ,String s11,String s12,String s13,String s14,String s15,String s16,String s17,String s18,String s19,String s20
            ,String s21,String s22,String s23,String s24,String s25,String s26) {
        ServiceOpenBidList.serviceOpenBidList = MessageFormat.format(serviceOpenBidList,s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,
                s11,s12,s13,s14,s15,s16,s17,s18,s19,s20,s21,s22,s23,s24,s25,s26);
    }
    public static void setServiceOpenBidList(){
        setServiceOpenBidList(serviceOpenBidList, ParameterUtils.get("serviceOpenBidListCode"),
                                                ParameterUtils.get("openBidRecordCode"),
                                                ParameterUtils.get("bidSectionCode"),
                                                ParameterUtils.get("isUnion"),
                                                ParameterUtils.get("unionCodeType"),
                                                ParameterUtils.get("unionCode"),
                                                ParameterUtils.get("unionName"),
                                                ParameterUtils.get("unionMemberBasicInfoVersion"),
                                                ParameterUtils.get("bidderCodeType"),
                                                ParameterUtils.get("bidderCode"),
                                                ParameterUtils.get("bidderName"),
                                                ParameterUtils.get("bidderBasicInfoVersion"),
                                                ParameterUtils.get("duration"),
                                                ParameterUtils.get("otherBidPrice"),
                                                ParameterUtils.get("bidAmount"),
                                                ParameterUtils.get("currencyCode"),
                                                ParameterUtils.get("priceUnit"),
                                                ParameterUtils.get("responsibleName"),
                                                ParameterUtils.get("responsibleCodeType"),
                                                ParameterUtils.get("responsibleCode"),
                                                ParameterUtils.get("otherOpenBidContent"),
                                                ParameterUtils.get("version"),
                                                ParameterUtils.get("openType"),
                                                ParameterUtils.get("examinerName"),
                                                ParameterUtils.get("examinerCodeType"),
                                                ParameterUtils.get("examinerCode"),
                                                ParameterUtils.get("verifyTime")

        );
    }

    public static void main(String[] args) {
        setServiceOpenBidList();
        System.out.println(serviceOpenBidList);
    }
}
